﻿using System;
using System.Collections.Generic;
using Core.Dtos;

namespace Core.Entities
{
	public static class EntityExtensionMethods
	{
		public static ArticleDto ToDto(this Article entity)
		{
			return AutoMapper.Mapper.Map<Article, ArticleDto>(entity);
		}		
	}
}

